import request from '@/utils/request'
// 水机


//获取水机列表
export function getMaintenanceList(params) {
    return request({
        url: '/property/maintenance',
        method: 'get',
        params
    })
}

//获取社区详情
export function getMaintenanceDetail(params) {
    return request({
        url: '/property/maintenance/detail',
        method: 'get',
        params
    })
}
export function getMaintenanceSelectList(params) {
    return request({
        url: '/property/maintenance/getSelectLists',
        method: 'get',
        params
    })
}
//添加
export function createMaintenance(data) {
    return request({
        url: '/property/maintenance/create',
        method: 'post',
        data
    })
}

//修改
export function updateMaintenance(data) {
    return request({
        url: '/property/maintenance/update',
        method: 'put',
        data
    })
}


//修改
export function changeMaintenanceFiledStatus(data) {
    return request({
        url: '/property/maintenance/changeFiledStatus',
        method: 'put',
        data
    })
}


//删除
export function delMaintenance(data) {
    return request({
        url: '/property/maintenance/delete',
        method: 'delete',
        data
    })
}


